

import { createApp } from 'vue'
import { createPinia } from 'pinia'
//导入element plus
import ElementPlus from 'element-plus'
//导入样式
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
//导入图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)

app.use(createPinia())
app.use(router)
//使用element plus
app.use(ElementPlus)
//使用图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


app.mount('#app')
